{
	"info": {
		"_postman_id": "4f1fbeec-204d-4877-ac20-b1f5ae1e0d35",
		"name": "## Public Api Gateway - API ##",
		"description": "#description\n\nContact Support:\n Name: Bewotec GmbH\n Email: info@bewotec.de",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "12689576"
	},
	"item": [
		{
			"name": "Travel Document",
			"item": [
				{
					"name": "Upload PDF-Files, which are assigned to a specific booking",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"participants\": [\n        {\n            \"id\": \"<integer>\",\n            \"firstName\": \"<string>\",\n            \"lastName\": \"<string>\"\n        },\n        {\n            \"id\": \"<integer>\",\n            \"firstName\": \"<string>\",\n            \"lastName\": \"<string>\"\n        }\n    ],\n    \"bookingDocuments\": [\n        {\n            \"assignedParticipants\": [\n                \"<integer>\",\n                \"<integer>\"\n            ],\n            \"file\": {\n                \"identifier\": \"<string>\",\n                \"name\": \"<string>\",\n                \"data\": \"<byte>\"\n            }\n        },\n        {\n            \"assignedParticipants\": [\n                \"<integer>\",\n                \"<integer>\"\n            ],\n            \"file\": {\n                \"identifier\": \"<string>\",\n                \"name\": \"<string>\",\n                \"data\": \"<byte>\"\n            }\n        }\n    ],\n    \"commonDocuments\": [\n        \"<string>\",\n        \"<string>\"\n    ]\n}"
						},
						"url": {
							"raw": "{{baseUrl}}/td/booking-documents/:bookingNumber",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"td",
								"booking-documents",
								":bookingNumber"
							],
							"variable": [
								{
									"key": "bookingNumber",
									"value": "<string>",
									"type": "string",
									"description": "(Required) "
								}
							]
						},
						"description": "Within this Request, a service provider can upload booking related documents into the cloud.\n            Booking related PDF Files are usually valid only for the regarded booking.\n            These could be personal travel documents and vouchers, as well as train tickets or luggage tags.\n            Furthermore, this request informs which of the existing, (common) PDF files are also assigned to the booking. (More information about common documents is provided over the request /td/common-documents.)\n            "
					},
					"response": [
						{
							"name": "Untitled Example",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"description": "Added as a part of security scheme: apikey",
										"key": "Authentication",
										"value": "<API Key>"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"participants\": [\n        {\n            \"id\": \"<integer>\",\n            \"firstName\": \"<string>\",\n            \"lastName\": \"<string>\"\n        },\n        {\n            \"id\": \"<integer>\",\n            \"firstName\": \"<string>\",\n            \"lastName\": \"<string>\"\n        }\n    ],\n    \"bookingDocuments\": [\n        {\n            \"assignedParticipants\": [\n                \"<integer>\",\n                \"<integer>\"\n            ],\n            \"file\": {\n                \"identifier\": \"<string>\",\n                \"name\": \"<string>\",\n                \"data\": \"<byte>\"\n            }\n        },\n        {\n            \"assignedParticipants\": [\n                \"<integer>\",\n                \"<integer>\"\n            ],\n            \"file\": {\n                \"identifier\": \"<string>\",\n                \"name\": \"<string>\",\n                \"data\": \"<byte>\"\n            }\n        }\n    ],\n    \"commonDocuments\": [\n        \"<string>\",\n        \"<string>\"\n    ]\n}"
								},
								"url": {
									"raw": "{{baseUrl}}/td/booking-documents/:bookingNumber",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"td",
										"booking-documents",
										":bookingNumber"
									],
									"variable": [
										{
											"key": "bookingNumber"
										}
									]
								}
							},
							"status": "Bad Request",
							"code": 400,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n \"message\": \"<string>\",\n \"detail\": \"<string>\",\n \"errors\": \"<object>\",\n \"status\": \"<integer>\",\n \"requestId\": \"<string>\"\n}"
						},
						{
							"name": "Untitled Example",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"description": "Added as a part of security scheme: apikey",
										"key": "Authentication",
										"value": "<API Key>"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"participants\": [\n        {\n            \"id\": \"<integer>\",\n            \"firstName\": \"<string>\",\n            \"lastName\": \"<string>\"\n        },\n        {\n            \"id\": \"<integer>\",\n            \"firstName\": \"<string>\",\n            \"lastName\": \"<string>\"\n        }\n    ],\n    \"bookingDocuments\": [\n        {\n            \"assignedParticipants\": [\n                \"<integer>\",\n                \"<integer>\"\n            ],\n            \"file\": {\n                \"identifier\": \"<string>\",\n                \"name\": \"<string>\",\n                \"data\": \"<byte>\"\n            }\n        },\n        {\n            \"assignedParticipants\": [\n                \"<integer>\",\n                \"<integer>\"\n            ],\n            \"file\": {\n                \"identifier\": \"<string>\",\n                \"name\": \"<string>\",\n                \"data\": \"<byte>\"\n            }\n        }\n    ],\n    \"commonDocuments\": [\n        \"<string>\",\n        \"<string>\"\n    ]\n}"
								},
								"url": {
									"raw": "{{baseUrl}}/td/booking-documents/:bookingNumber",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"td",
										"booking-documents",
										":bookingNumber"
									],
									"variable": [
										{
											"key": "bookingNumber"
										}
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "text",
							"header": [
								{
									"key": "Content-Type",
									"value": "text/plain"
								}
							],
							"cookie": [],
							"body": ""
						},
						{
							"name": "Untitled Example",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"description": "Added as a part of security scheme: apikey",
										"key": "Authentication",
										"value": "<API Key>"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"participants\": [\n        {\n            \"id\": \"<integer>\",\n            \"firstName\": \"<string>\",\n            \"lastName\": \"<string>\"\n        },\n        {\n            \"id\": \"<integer>\",\n            \"firstName\": \"<string>\",\n            \"lastName\": \"<string>\"\n        }\n    ],\n    \"bookingDocuments\": [\n        {\n            \"assignedParticipants\": [\n                \"<integer>\",\n                \"<integer>\"\n            ],\n            \"file\": {\n                \"identifier\": \"<string>\",\n                \"name\": \"<string>\",\n                \"data\": \"<byte>\"\n            }\n        },\n        {\n            \"assignedParticipants\": [\n                \"<integer>\",\n                \"<integer>\"\n            ],\n            \"file\": {\n                \"identifier\": \"<string>\",\n                \"name\": \"<string>\",\n                \"data\": \"<byte>\"\n            }\n        }\n    ],\n    \"commonDocuments\": [\n        \"<string>\",\n        \"<string>\"\n    ]\n}"
								},
								"url": {
									"raw": "{{baseUrl}}/td/booking-documents/:bookingNumber",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"td",
										"booking-documents",
										":bookingNumber"
									],
									"variable": [
										{
											"key": "bookingNumber"
										}
									]
								}
							},
							"status": "Unauthorized",
							"code": 401,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n \"message\": \"<string>\",\n \"detail\": \"<string>\",\n \"errors\": \"<object>\",\n \"status\": \"<integer>\",\n \"requestId\": \"<string>\"\n}"
						},
						{
							"name": "Untitled Example",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"description": "Added as a part of security scheme: apikey",
										"key": "Authentication",
										"value": "<API Key>"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"participants\": [\n        {\n            \"id\": \"<integer>\",\n            \"firstName\": \"<string>\",\n            \"lastName\": \"<string>\"\n        },\n        {\n            \"id\": \"<integer>\",\n            \"firstName\": \"<string>\",\n            \"lastName\": \"<string>\"\n        }\n    ],\n    \"bookingDocuments\": [\n        {\n            \"assignedParticipants\": [\n                \"<integer>\",\n                \"<integer>\"\n            ],\n            \"file\": {\n                \"identifier\": \"<string>\",\n                \"name\": \"<string>\",\n                \"data\": \"<byte>\"\n            }\n        },\n        {\n            \"assignedParticipants\": [\n                \"<integer>\",\n                \"<integer>\"\n            ],\n            \"file\": {\n                \"identifier\": \"<string>\",\n                \"name\": \"<string>\",\n                \"data\": \"<byte>\"\n            }\n        }\n    ],\n    \"commonDocuments\": [\n        \"<string>\",\n        \"<string>\"\n    ]\n}"
								},
								"url": {
									"raw": "{{baseUrl}}/td/booking-documents/:bookingNumber",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"td",
										"booking-documents",
										":bookingNumber"
									],
									"variable": [
										{
											"key": "bookingNumber"
										}
									]
								}
							},
							"status": "Internal Server Error",
							"code": 500,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n \"message\": \"<string>\",\n \"detail\": \"<string>\",\n \"errors\": \"<object>\",\n \"status\": \"<integer>\",\n \"requestId\": \"<string>\"\n}"
						},
						{
							"name": "Untitled Example",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"description": "Added as a part of security scheme: apikey",
										"key": "Authentication",
										"value": "<API Key>"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"participants\": [\n        {\n            \"id\": \"<integer>\",\n            \"firstName\": \"<string>\",\n            \"lastName\": \"<string>\"\n        },\n        {\n            \"id\": \"<integer>\",\n            \"firstName\": \"<string>\",\n            \"lastName\": \"<string>\"\n        }\n    ],\n    \"bookingDocuments\": [\n        {\n            \"assignedParticipants\": [\n                \"<integer>\",\n                \"<integer>\"\n            ],\n            \"file\": {\n                \"identifier\": \"<string>\",\n                \"name\": \"<string>\",\n                \"data\": \"<byte>\"\n            }\n        },\n        {\n            \"assignedParticipants\": [\n                \"<integer>\",\n                \"<integer>\"\n            ],\n            \"file\": {\n                \"identifier\": \"<string>\",\n                \"name\": \"<string>\",\n                \"data\": \"<byte>\"\n            }\n        }\n    ],\n    \"commonDocuments\": [\n        \"<string>\",\n        \"<string>\"\n    ]\n}"
								},
								"url": {
									"raw": "{{baseUrl}}/td/booking-documents/:bookingNumber",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"td",
										"booking-documents",
										":bookingNumber"
									],
									"variable": [
										{
											"key": "bookingNumber"
										}
									]
								}
							},
							"status": "Forbidden",
							"code": 403,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n \"message\": \"<string>\",\n \"detail\": \"<string>\",\n \"errors\": \"<object>\",\n \"status\": \"<integer>\",\n \"requestId\": \"<string>\"\n}"
						},
						{
							"name": "Untitled Example",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"description": "Added as a part of security scheme: apikey",
										"key": "Authentication",
										"value": "<API Key>"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"participants\": [\n        {\n            \"id\": \"<integer>\",\n            \"firstName\": \"<string>\",\n            \"lastName\": \"<string>\"\n        },\n        {\n            \"id\": \"<integer>\",\n            \"firstName\": \"<string>\",\n            \"lastName\": \"<string>\"\n        }\n    ],\n    \"bookingDocuments\": [\n        {\n            \"assignedParticipants\": [\n                \"<integer>\",\n                \"<integer>\"\n            ],\n            \"file\": {\n                \"identifier\": \"<string>\",\n                \"name\": \"<string>\",\n                \"data\": \"<byte>\"\n            }\n        },\n        {\n            \"assignedParticipants\": [\n                \"<integer>\",\n                \"<integer>\"\n            ],\n            \"file\": {\n                \"identifier\": \"<string>\",\n                \"name\": \"<string>\",\n                \"data\": \"<byte>\"\n            }\n        }\n    ],\n    \"commonDocuments\": [\n        \"<string>\",\n        \"<string>\"\n    ]\n}"
								},
								"url": {
									"raw": "{{baseUrl}}/td/booking-documents/:bookingNumber",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"td",
										"booking-documents",
										":bookingNumber"
									],
									"variable": [
										{
											"key": "bookingNumber"
										}
									]
								}
							},
							"status": "No Content",
							"code": 204,
							"_postman_previewlanguage": "text",
							"header": [
								{
									"key": "Content-Type",
									"value": "text/plain"
								}
							],
							"cookie": [],
							"body": ""
						}
					]
				},
				{
					"name": "Upload PDF-Files, which are not assigned to a specific booking ",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "[\n    {\n        \"identifier\": \"<string>\",\n        \"name\": \"<string>\",\n        \"data\": \"<byte>\"\n    },\n    {\n        \"identifier\": \"<string>\",\n        \"name\": \"<string>\",\n        \"data\": \"<byte>\"\n    }\n]"
						},
						"url": {
							"raw": "{{baseUrl}}/td/common-documents",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"td",
								"common-documents"
							]
						},
						"description": "Within this Request, a service provider can upload “common documents” into the cloud. \n             \"Common documents\" are static files.\n            This means, the files are not generated per booking/ transaction.\n            There are two types of static PDF files: \n            Destination related documents = \n            Documents for bookings which, for example, go to the same destination. (e.g.all Caribbean trips)\n            Static documents =\n            Documents, which are added to each booking(e.g.Board ABC)\n            "
					},
					"response": [
						{
							"name": "Untitled Example",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"description": "Added as a part of security scheme: apikey",
										"key": "Authentication",
										"value": "<API Key>"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "[\n    {\n        \"identifier\": \"<string>\",\n        \"name\": \"<string>\",\n        \"data\": \"<byte>\"\n    },\n    {\n        \"identifier\": \"<string>\",\n        \"name\": \"<string>\",\n        \"data\": \"<byte>\"\n    }\n]"
								},
								"url": {
									"raw": "{{baseUrl}}/td/common-documents",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"td",
										"common-documents"
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "text",
							"header": [
								{
									"key": "Content-Type",
									"value": "text/plain"
								}
							],
							"cookie": [],
							"body": ""
						},
						{
							"name": "Untitled Example",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"description": "Added as a part of security scheme: apikey",
										"key": "Authentication",
										"value": "<API Key>"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "[\n    {\n        \"identifier\": \"<string>\",\n        \"name\": \"<string>\",\n        \"data\": \"<byte>\"\n    },\n    {\n        \"identifier\": \"<string>\",\n        \"name\": \"<string>\",\n        \"data\": \"<byte>\"\n    }\n]"
								},
								"url": {
									"raw": "{{baseUrl}}/td/common-documents",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"td",
										"common-documents"
									]
								}
							},
							"status": "Bad Request",
							"code": 400,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n \"message\": \"<string>\",\n \"detail\": \"<string>\",\n \"errors\": \"<object>\",\n \"status\": \"<integer>\",\n \"requestId\": \"<string>\"\n}"
						},
						{
							"name": "Untitled Example",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"description": "Added as a part of security scheme: apikey",
										"key": "Authentication",
										"value": "<API Key>"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "[\n    {\n        \"identifier\": \"<string>\",\n        \"name\": \"<string>\",\n        \"data\": \"<byte>\"\n    },\n    {\n        \"identifier\": \"<string>\",\n        \"name\": \"<string>\",\n        \"data\": \"<byte>\"\n    }\n]"
								},
								"url": {
									"raw": "{{baseUrl}}/td/common-documents",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"td",
										"common-documents"
									]
								}
							},
							"status": "Internal Server Error",
							"code": 500,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n \"message\": \"<string>\",\n \"detail\": \"<string>\",\n \"errors\": \"<object>\",\n \"status\": \"<integer>\",\n \"requestId\": \"<string>\"\n}"
						},
						{
							"name": "Untitled Example",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"description": "Added as a part of security scheme: apikey",
										"key": "Authentication",
										"value": "<API Key>"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "[\n    {\n        \"identifier\": \"<string>\",\n        \"name\": \"<string>\",\n        \"data\": \"<byte>\"\n    },\n    {\n        \"identifier\": \"<string>\",\n        \"name\": \"<string>\",\n        \"data\": \"<byte>\"\n    }\n]"
								},
								"url": {
									"raw": "{{baseUrl}}/td/common-documents",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"td",
										"common-documents"
									]
								}
							},
							"status": "Unauthorized",
							"code": 401,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n \"message\": \"<string>\",\n \"detail\": \"<string>\",\n \"errors\": \"<object>\",\n \"status\": \"<integer>\",\n \"requestId\": \"<string>\"\n}"
						},
						{
							"name": "Untitled Example",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"description": "Added as a part of security scheme: apikey",
										"key": "Authentication",
										"value": "<API Key>"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "[\n    {\n        \"identifier\": \"<string>\",\n        \"name\": \"<string>\",\n        \"data\": \"<byte>\"\n    },\n    {\n        \"identifier\": \"<string>\",\n        \"name\": \"<string>\",\n        \"data\": \"<byte>\"\n    }\n]"
								},
								"url": {
									"raw": "{{baseUrl}}/td/common-documents",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"td",
										"common-documents"
									]
								}
							},
							"status": "Forbidden",
							"code": 403,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n \"message\": \"<string>\",\n \"detail\": \"<string>\",\n \"errors\": \"<object>\",\n \"status\": \"<integer>\",\n \"requestId\": \"<string>\"\n}"
						},
						{
							"name": "Untitled Example",
							"originalRequest": {
								"method": "POST",
								"header": [
									{
										"description": "Added as a part of security scheme: apikey",
										"key": "Authentication",
										"value": "<API Key>"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "[\n    {\n        \"identifier\": \"<string>\",\n        \"name\": \"<string>\",\n        \"data\": \"<byte>\"\n    },\n    {\n        \"identifier\": \"<string>\",\n        \"name\": \"<string>\",\n        \"data\": \"<byte>\"\n    }\n]"
								},
								"url": {
									"raw": "{{baseUrl}}/td/common-documents",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"td",
										"common-documents"
									]
								}
							},
							"status": "No Content",
							"code": 204,
							"_postman_previewlanguage": "text",
							"header": [
								{
									"key": "Content-Type",
									"value": "text/plain"
								}
							],
							"cookie": [],
							"body": ""
						}
					]
				},
				{
					"name": "Retrieve all URL’s to existing documents per booking number. ",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{baseUrl}}/td/travel-infos/:bookingNumber",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"td",
								"travel-infos",
								":bookingNumber"
							],
							"variable": [
								{
									"key": "bookingNumber",
									"value": "<string>",
									"type": "string",
									"description": "(Required) 4711"
								}
							]
						},
						"description": "With this method, all URLs can be requested per booking number.\n             This method can be used, if all documents from the cloud should be displayed(per booking number) in a customer interface.\n             The request of all existing URLs for a booking is done by booking number\n            "
					},
					"response": [
						{
							"name": "Untitled Example",
							"originalRequest": {
								"method": "GET",
								"header": [
									{
										"description": "Added as a part of security scheme: apikey",
										"key": "Authentication",
										"value": "<API Key>"
									}
								],
								"url": {
									"raw": "{{baseUrl}}/td/travel-infos/:bookingNumber",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"td",
										"travel-infos",
										":bookingNumber"
									],
									"variable": [
										{
											"key": "bookingNumber"
										}
									]
								}
							},
							"status": "Forbidden",
							"code": 403,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n \"message\": \"<string>\",\n \"detail\": \"<string>\",\n \"errors\": \"<object>\",\n \"status\": \"<integer>\",\n \"requestId\": \"<string>\"\n}"
						},
						{
							"name": "Untitled Example",
							"originalRequest": {
								"method": "GET",
								"header": [
									{
										"description": "Added as a part of security scheme: apikey",
										"key": "Authentication",
										"value": "<API Key>"
									}
								],
								"url": {
									"raw": "{{baseUrl}}/td/travel-infos/:bookingNumber",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"td",
										"travel-infos",
										":bookingNumber"
									],
									"variable": [
										{
											"key": "bookingNumber"
										}
									]
								}
							},
							"status": "Internal Server Error",
							"code": 500,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n \"message\": \"<string>\",\n \"detail\": \"<string>\",\n \"errors\": \"<object>\",\n \"status\": \"<integer>\",\n \"requestId\": \"<string>\"\n}"
						},
						{
							"name": "Untitled Example",
							"originalRequest": {
								"method": "GET",
								"header": [
									{
										"description": "Added as a part of security scheme: apikey",
										"key": "Authentication",
										"value": "<API Key>"
									}
								],
								"url": {
									"raw": "{{baseUrl}}/td/travel-infos/:bookingNumber",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"td",
										"travel-infos",
										":bookingNumber"
									],
									"variable": [
										{
											"key": "bookingNumber"
										}
									]
								}
							},
							"status": "Not Found",
							"code": 404,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n \"message\": \"<string>\",\n \"detail\": \"<string>\",\n \"errors\": \"<object>\",\n \"status\": \"<integer>\",\n \"requestId\": \"<string>\"\n}"
						},
						{
							"name": "Within the response, information about existing documents are provided. \n            The name of the document is displayed, as well as the participants to which the document belongs and the creation date. The category informs whether the document is gener",
							"originalRequest": {
								"method": "GET",
								"header": [
									{
										"description": "Added as a part of security scheme: apikey",
										"key": "Authentication",
										"value": "<API Key>"
									}
								],
								"url": {
									"raw": "{{baseUrl}}/td/travel-infos/:bookingNumber",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"td",
										"travel-infos",
										":bookingNumber"
									],
									"variable": [
										{
											"key": "bookingNumber"
										}
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n \"bookingNumber\": \"<string>\",\n \"participants\": [\n  {\n   \"id\": \"<integer>\",\n   \"firstName\": \"<string>\",\n   \"lastName\": \"<string>\"\n  },\n  {\n   \"id\": \"<integer>\",\n   \"firstName\": \"<string>\",\n   \"lastName\": \"<string>\"\n  }\n ],\n \"documents\": [\n  {\n   \"name\": \"<string>\",\n   \"assignedParticipants\": [\n    \"<integer>\",\n    \"<integer>\"\n   ],\n   \"creationDate\": \"<dateTime>\",\n   \"category\": \"<string>\",\n   \"url\": \"<string>\"\n  },\n  {\n   \"name\": \"<string>\",\n   \"assignedParticipants\": [\n    \"<integer>\",\n    \"<integer>\"\n   ],\n   \"creationDate\": \"<dateTime>\",\n   \"category\": \"<string>\",\n   \"url\": \"<string>\"\n  }\n ]\n}"
						},
						{
							"name": "Untitled Example",
							"originalRequest": {
								"method": "GET",
								"header": [
									{
										"description": "Added as a part of security scheme: apikey",
										"key": "Authentication",
										"value": "<API Key>"
									}
								],
								"url": {
									"raw": "{{baseUrl}}/td/travel-infos/:bookingNumber",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"td",
										"travel-infos",
										":bookingNumber"
									],
									"variable": [
										{
											"key": "bookingNumber"
										}
									]
								}
							},
							"status": "Unauthorized",
							"code": 401,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n \"message\": \"<string>\",\n \"detail\": \"<string>\",\n \"errors\": \"<object>\",\n \"status\": \"<integer>\",\n \"requestId\": \"<string>\"\n}"
						},
						{
							"name": "Untitled Example",
							"originalRequest": {
								"method": "GET",
								"header": [
									{
										"description": "Added as a part of security scheme: apikey",
										"key": "Authentication",
										"value": "<API Key>"
									}
								],
								"url": {
									"raw": "{{baseUrl}}/td/travel-infos/:bookingNumber",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"td",
										"travel-infos",
										":bookingNumber"
									],
									"variable": [
										{
											"key": "bookingNumber"
										}
									]
								}
							},
							"status": "Bad Request",
							"code": 400,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json"
								}
							],
							"cookie": [],
							"body": "{\n \"message\": \"<string>\",\n \"detail\": \"<string>\",\n \"errors\": \"<object>\",\n \"status\": \"<integer>\",\n \"requestId\": \"<string>\"\n}"
						}
					]
				}
			]
		}
	],
	"auth": {
		"type": "apikey",
		"apikey": [
			{
				"key": "key",
				"value": "Authorization",
				"type": "string"
			},
			{
				"key": "value",
				"value": "{{authorization}}",
				"type": "string"
			},
			{
				"key": "in",
				"value": "header",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					"var gateName = \"publicApiGate\";",
					"setPostmanVariables(gateName + \"BaseUrl\");",
					"var authHeader = getAuthHeader(gateName, true);",
					"pm.collectionVariables.set(\"authorization\", authHeader);",
					"//console.info(authHeader);",
					"",
					"function setPostmanVariables(environmentBaseUrlName) {",
					"    var baseUrl = environment[environmentBaseUrlName];",
					"    if (baseUrl.endsWith(\"/\"))",
					"    {",
					"        baseUrl = baseUrl.substring(0, baseUrl.length - 1);",
					"    }",
					"    pm.collectionVariables.set(\"baseUrl\", baseUrl)",
					"    pm.environment.set(environmentBaseUrlName, baseUrl);",
					"}",
					"",
					"function getAuthHeader(gateName, includePayload) {",
					"    var username = environment[gateName + \"Username\"].toString();",
					"    var secretKey = environment[gateName + \"SecretKey\"].toString();",
					"    var accessKey = environment[gateName + \"AccessKey\"].toString();",
					"",
					"    var utcDate = new Date().toISOString(); ",
					"    var isoDate = utcDate.substring(0, 10).replace(/-/g, \"\") +  utcDate.substring(11, 19).replace(/:/g, \"\");",
					"",
					"    var httpVerb = pm.request.method.toUpperCase();",
					"    var encodedPathAndQuery = getEncodedPathAndQuery();",
					"    ",
					"    var bodyHash = \"\";",
					"    if (includePayload)",
					"    {",
					"        bodyHash = getBodyHash(pm.request.body);",
					"    }",
					"",
					"    var assemble = (isoDate + httpVerb + encodedPathAndQuery + bodyHash);",
					"    ",
					"    var hmac = CryptoJS.HmacSHA256(assemble, secretKey);",
					"    var signatureInBase64 = CryptoJS.enc.Base64.stringify(hmac);",
					"",
					"    var authorization = \"DirectGrant \" + username + \" \" + accessKey + \" \" + isoDate + \" \" + signatureInBase64;",
					"    return authorization;",
					"}",
					"",
					"function getEncodedPathAndQuery() {",
					"",
					"    pm.variables.replaceIn(pm.request.url);",
					"    var encodedPathAndQuery = pm.request.url.getPathWithQuery(true).toUpperCase();",
					"    return encodedPathAndQuery;",
					"}",
					"",
					"function getBodyHash(body) {",
					"    var bodyHash=\"\";",
					"    if (pm.request.body.isEmpty() == false)",
					"    {",
					"        pm.request.headers.add(\"x-nt-content-sha256: true\");",
					"        var body = interpolate(pm.request.body.toString());",
					"        var body256 = CryptoJS.SHA256(body);",
					"        bodyHash = CryptoJS.enc.Base64.stringify(body256);",
					"    }",
					"    return bodyHash;",
					"}",
					"",
					"function interpolate(value) {",
					"    const {Property} = require('postman-collection');",
					"    return Property.replaceSubstitutions(value, pm.variables.toObject());",
					"}"
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "baseUrl",
			"value": "https://publicapi.stage.nt.cloud.bewotec.de"
		},
		{
			"key": "authorization",
			"value": ""
		}
	]
}